<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<%-- 权限判断 --%>
<shield:permssion type="button">
<table class="tab-list shield-table-odd">
	<col width="60">
	<col width="">
	<col width="">
	<col width="">
	<col width="100">
	<col width="150">
	<col width="100">
	<col width="150">
	<col width="80">
	<col width="115">
    <tr>
        <th>序号</th>
	    <th>设置名称</th>
	    <th>数据库用户名</th>
	    <th>数据库url</th>
	    <th>创建人</th>
	    <th>创建时间</th>
	    <th>修改人</th>
	    <th>修改时间</th>
	    <th>连接测试</th>
        <th class="operate_icon">操作</th>
    </tr>
<c:forEach var="model" items="${pageBean.resultList }" varStatus="var">
    <tr>
        <td style="text-align: center;">${(pageBean.currentPage -1)*pageBean.pageSize+var.count }</td>
        
	   	<td title="${model.dbSetName }">${model.dbSetName }</td>
	   	<td title="${model.dbUserName }">${model.dbUserName }</td>
	   	<td title="${model.dbUrl }">${model.dbUrl }</td>
	   	<td >${model.createName }</td>
	   	<td title="${model.createTime }">${model.createTime }</td>
	   	<td >${model.updateName }</td>
	   	<td title="${model.updateTime }">${model.updateTime }</td>
        <td class="taCenter">
        	<!-- href改为data-url -->
            <a data-url="${ctxPathA }/system/codegen/dbset/testconn" shieldParams="{'id':'${model.id }'}" class="shieldAjax" 
               ><img src="${ctxPath }/images/icon/allocation.png" class="show c_p" title="测试连接情况"/></a>
        </td>
        <td>
        	<!-- href改为data-url -->
            <a data-url="${ctxPathA }/system/codegen/dbset/show" shieldParams="{'id':'${model.id }'}" class="shieldDialog" viewTitle="详情"
               viewWidth="800"><img src="${ctxPath }/images/icon/view.png" class="show c_p" title="查看代码生成器-数据库设置详情"/></a>
            <a data-url="${ctxPathA }/system/codegen/dbset//toAddOrUpdate" shieldParams="{'id':'${model.id }'}"  class="shieldDialog" viewTitle="修改代码生成器-数据库设置"
               viewWidth="800"><img src="${ctxPath }/images/icon/modify.png" class="update c_p" title="修改代码生成器-数据库设置"/></a>
            <a data-url="${ctxPathA }/system/codegen/dbset/del" shieldParams="{'id':'${model.id }'}"  class="shieldAjax" viewTitle="确定要删除该条记录吗?"><img
                    src="${ctxPath }/images/icon/delete.png" style="cursor:pointer" class="del noajax" title="删除信息"></a>
        </td>
    </tr>
</c:forEach>
<c:if test="${empty pageBean.resultList }">
    <!-- 无数据时展示，有数据时展示上面的列表 -->
    <tr class="nodatatr_plugin">
        <td colspan="8" class="taCenter">暂无数据</td>
    </tr>
</c:if>
</table>
</shield:permssion>
<%@include file="/WEB-INF/view/a/include/pagination.jsp"%>
